import request from '@/utils/request'

// 查询学校考点关联列表
export function listAssign(query) {
  return request({
    url: '/business/schoolPlaceAssigns',
    method: 'get',
    params: query
  })
}

// 查询学校考点关联详细
export function getAssign(id) {
  return request({
    url: '/business/schoolPlaceAssigns/' + id,
    method: 'get'
  })
}

// 新增学校考点关联
export function addAssign(data) {
  return request({
    url: '/business/schoolPlaceAssigns',
    method: 'post',
    data: data
  })
}

// 修改学校考点关联
export function updateAssign(data,id) {
  return request({
    url: '/business/schoolPlaceAssigns/'+id,
    method: 'put',
    data: data
  })
}

// 删除学校考点关联
export function delAssign(id) {
  return request({
    url: '/business/schoolPlaceAssigns/' + id,
    method: 'delete'
  })
}

//查询考点列表
export function listExamPlaces(query) {
  return request({
      url:'/business/examPlaces/list',
      method: 'get',
      params: query
  })
}

// 查询学校列表
export function listSchools(query) {
  return request({
    url: '/business/school/NotAssignedList',
    method: 'get',
    params: query
  })
}
